package com.gr.dmbackend.controller.student;

import com.alibaba.fastjson.JSONObject;
import com.gr.dmbackend.service.student.RevokeRepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RevokeRepairController {

    @Autowired
    private RevokeRepairService revokeRepairService;

    @PostMapping("/api/student/revoke-repair")
    public JSONObject revokeRepair(@RequestParam int id) {
        return revokeRepairService.revokeRepair(id);
    }

}
